#define _CRT_SECURE_NO_WARNINGS 1
int titleToNumber(char* columnTitle) {
    int sum = 0;
    if (strlen(columnTitle) == 0)
        return 0;
    else
    {
        for (int i = 0; i < strlen(columnTitle); i++)
        {
            sum += (columnTitle[i] - 'A' + 1) * pow(26, strlen(columnTitle) - i - 1);
        }
    }
    return sum;
}